package com.codes.service.impl;

import com.codes.dao.OpinionMapper;
import com.codes.model.Opinion;
import com.codes.service.OpinionSV;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Date 2020/6/13 11:57
 * @Created by peanut
 */
@Service
public class OpinionImpl implements OpinionSV {

    @Autowired
    private OpinionMapper opinionMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return opinionMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Opinion record) {
        return 0;
    }

    @Override
    public int insertSelective(Map record) {
        return opinionMapper.insertSelective(record);
    }

    @Override
    public Map selectByPrimaryKey(Integer id) {
        return opinionMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Map record) {
        return opinionMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Opinion record) {
        return 0;
    }

    @Override
    public List<Map<String, Object>> getListByMap(Map map) {
        return opinionMapper.getListByMap(map);
    }
}